﻿@using CodeCamp.Models.Shared
@model ErrorViewModel
@{
    @* ViewBag.RegistrationUrl set in code - SetSharedViewBagProperties *@
    ViewBag.EventName = "";
    ViewBag.Title = "";
    if ((@Model != null) && (@Model.EventDisplayName != null))
    {
        ViewBag.Title = @Html.Encode(@Model.EventDisplayName + " | Session Edit Error");
        ViewBag.EventName = @Model.EventDisplayName;
    }
    else
    {
        ViewBag.Title = "Code Camp | Session Edit Error";
        ViewBag.EventName = "Code Camp";
    }
}

<h2>Access Denied</h2>
<p>You are not authorized to edit this session.</p>

@section sidebar {
    @Html.Partial("SidebarCommonPartial")
}
